package strategy;

import java.math.BigDecimal;

/**
 * 房子
 */
public class Home {

    private Double area;
    private BigDecimal price;

    public Double getArea() {
        return area;
    }

    public void setArea(Double area) {
        this.area = area;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Home(Double area, BigDecimal price) {
        this.area = area;
        this.price = price;
    }

    @Override
    public String toString() {
        return "Home{" +
                "area=" + area +
                ", price=" + price +
                '}';
    }
}
